function getTopicInfoApi(boardId,params){
    return $axios({
        'url': `/topic/list/${boardId}`,
        'method': 'get',
        params
    })
}
function getUserNameApi(userId){
    return $axios({
        'url': `/user/name/${userId}`,
        'method': 'get',
    })
}
function getReplyCountApi(topicId){
    return $axios({
        'url': `/reply/count/${topicId}`,
        'method': 'get',
    })
}
function saveTopicApi(data){
    return $axios({
        'url': `/topic/add`,
        'method': 'post',
        data
    })
}